import request from '@/utils/request'

// 查询异常处置信息列表
export function listUrgentDisposal(query) {
  return request({
    url: '/billsdecl/urgentDisposal/list',
    method: 'get',
    params: query
  })
}

// 查询异常处置信息详细
export function getUrgentDisposal(id) {
  return request({
    url: '/billsdecl/urgentDisposal/getOne/' + id,
    method: 'get'
  })
}

// 新增异常处置信息
export function addUrgentDisposal(data) {
  return request({
    url: '/billsdecl/urgentDisposal/add',
    method: 'post',
    data: data
  })
}

// 修改异常处置信息
export function updateUrgentDisposal(data) {
  return request({
    url: '/billsdecl/urgentDisposal/edit',
    method: 'post',
    data: data
  })
}

// 删除异常处置信息
export function delUrgentDisposal(id) {
  return request({
    url: '/billsdecl/urgentDisposal/remove/' + id,
    method: 'get'
  })
}


export function declUrgentDisposalList(id) {
  return request({
    url: '/billsdecl/urgentDisposal/declUrgentDisposalList/' + id,
    method: 'post'
  })
}

// 导出异常处置信息
export function exportUrgentDisposal(query) {
  return request({
    url: '/system/urgentDisposal/export',
    method: 'get',
    params: query
  })
}
